//
//  YCTitleView.h
//  TitleContent
//
//  Created by 唐可雄 on 2019/7/18.
//  Copyright © 2019 swustyc. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "YCTitleContentConfig.h"

@class YCTitleView;

NS_ASSUME_NONNULL_BEGIN

@protocol YCTitleViewDataSource <NSObject>

- (NSUInteger)numberOfTitlesInTitleView:(YCTitleView *)titleView;

@end

@protocol YCTitleViewDelegate <NSObject>

- (void)titleView:(YCTitleView *)titleView didSelectAtIndex:(NSUInteger)index;

@end

@interface YCTitleView : UIView

@property (nonatomic, copy) YCTitleContentConfig *config;

- (void)addSeparatorView;
- (void)setSelectedIndex:(NSUInteger)selectedIndex;
- (void)reloadData;

@end

NS_ASSUME_NONNULL_END
